﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MessageSystem.Managed.Infrastructure;

namespace MessageSystem.Managed.Interface
{
    public interface IMessageChannel
    {
        void Open(IMessageHandler handler);

        bool Send(IMessage m, UInt16 nFlags, Int32 nSessionId,int OpCode);

        void Close();

        bool Dispatch(UInt16 nFlags, Int32 nMessageId, Int32 nSessionId,Int32 OpCode,NetStream ns, int offset, int length);
    }
}
